<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./index.css">
    <script src="./vue.js"></script>
</head>

<body>
    <div id="app">
        <div class="fir" v-show="index==0">
            <header>消息</header>
            <ul>
                <li v-for="f in firs">
                    <img :src="f.url" alt="">
                    <strong>{{f.name}}</strong>
                </li>
            </ul>
        </div>
        <!-- +++++++++++++++++++++++++++++ -->
        <div class="sec" v-show="index==1">
            <header>联系人</header>
            <ul>
                <li v-for="(ss,index) in secs">
                    <h2 @click="showOrNot(index)">{{ss.sty}}</h2>
                    <ul v-show="isShow[index]">
                        <li v-for="s in ss.fen">{{s}}</li>
                    </ul>
                </li>
            </ul>
        </div>
        <!--+++++++++++++++++++++++++++++++++-->

        <div class="thi" v-show="index==2">
            <header>动态</header>
        </div>
        <footer>
            <span @click="index=0" :class="index==0?'active':''">消息</span>
            <span @click="index=1" :class="index==1?'active':''">联系人</span>
            <span @click="index=2" :class="index==2?'active':''">动态</span>
        </footer>
    </div>
    <script src="./index.js"></script>
</body>

</html>